home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Game-Power
/
Amiga Game-Power.iso
/
pd mix ii
/
access
/
thai
/
strsave.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-20
|
172b
|
18 lines
#include <stdio.h>
char *malloc ();
char *
strsave ( s )
char *s;
{
char *p;
p = malloc ( strlen ( s ) + 1 );
if ( p != NULL )
strcpy ( p , s );
return ( p );
}